<script setup lang="ts">

import TeamCardList from "../components/TeamCardList.vue";
import {onMounted, ref} from "vue";
import myAxios from "../plugins/MyAxios.ts";


onMounted(  ()=> {
 list()
})

const teamList = ref([]);
const list = async ()=>{
  const teamListDate = await myAxios.get('team/list/createteam',
  )
  if (teamListDate) {
    teamList.value = teamListDate.data

  }
}

</script>
<template>
<TeamCardList :team-list="teamList"/>
</template>
<style scoped>
</style>